home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Rockford Magazine
/
Rockford_Magazine_015_19xx_-_de_Side_A.d64
/
sm coupon v1.0
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
5KB
|
191 lines
10 rem sperrmuell-coupons drucken
20 :
30 rem (w) 4/1993 thomas kneissler
40 :
50 fori=50002to50111:reada:pokei,a:next
60 data169,1,162,187,160,195,32,189,255,169
70 data8,133,186,169,96,133,185,32,213,243
80 data165,186,32,180,255,165,185,32,150,255
90 data169,0,133,144,32,215,170,160,5,132
100 data2,32,165,255,133,251,164,2,136,208
110 data244,32,165,255,164,144,208,41,166,251
120 data32,205,189,169,32,32,210,255,32,165
130 data255,166,144,208,24,170,240,6,32,210
140 data255,76,150,195,169,13,32,210,255,32
150 data225,255,240,5,160,3,76,121,195,32
160 data171,255,76,66,246,36,0,0,0,0
170 :
180 clr:dim a$(12)
190 a$(7)="01234/56789 (9 - 14 h)":rem tel.nr.
200 a$(9)="[211]iggi [211]orglos, [198]loppystr. 64, 6502 [200]ackershausen":rem adresse
210 a$(10)="9876543210":rem ausweis-nummer
220 poke 53280,15:poke 53281,15:poke 646,0
230 poke 788,52
240 print chr$(147);chr$(14);chr$(8);
250 print" [211]perrmuell-[195]oupons drucken [144][146]"
260 print""
270 print" [200] [193] [213] [208] [212] [205] [197] [206] [213] [197]"
280 print
290 print" [ 1 ] [196]aten neu eingeben"
300 print" [ 2 ] [196]aten laden"
310 print" [ 3 ] [196]aten speichern"
320 print" [ 4 ] [196]aten anzeigen"
330 print" [ 5 ] [196]aten korrigieren"
340 print" [ 6 ] [196]aten drucken"
350 print" [ 7 ] [196]irectory"
360 print" [194]itte mit [212]asten 1 - 7 auswaehlen"
370 get n$:if n$="" then 370
380 if n$="1" then 470
390 if n$="2" then 1520
400 if n$="3" then 1410
410 if n$="4" then 1610
420 if n$="5" then 1210
430 if n$="6" then 710
440 if n$="7" then 1730
450 goto 240
460 :
470 for n=1 to 6:a$(n)="":next
480 a$(8)=""
490 print chr$(147);
500 print" [196]aten neu eingeben [146]"
510 print"[210]ubrik-[206]r.:";
520 n=1:gosub 1280
530 print"[144][194]iete / [211]uche (b/s):";
540 n=8:gosub 1280
550 if a$(8)="b" then a$(2)="[194]iete"
560 if a$(8)="b" then print:print"[145][145][194]iete[146] ":goto 600
570 if a$(8)="s" then a$(2)="[211]uche"
580 if a$(8)="s" then print:print"[145][145] [211]uche[146] ":goto 600
590 a$(8)="":goto 530
600 print"[144][193]nzeigentext (bis zu 4 [218]eilen):":print
610 print"1.:";
620 n=3:gosub 1280
630 print:print"2.:";
640 n=4:gosub 1280
650 print:print"3.:";
660 n=5:gosub 1280
670 print:print"4.:";
680 n=6:gosub 1280
690 goto 240
700 :
710 print chr$(147);
720 print" [196]aten drucken [146]"
730 print
740 print" [ 1 ] [195]oupon mit [212]elefon"
750 print" [ 2 ] [195]oupon mit [193]dresse"
760 get n$:if n$="" then 790
770 if n$="1" then 800
780 if n$="2" then 800
790 goto 760
800 open 1,4,2
810 print#1,chr$(27);"@";:rem reset
820 print#1,chr$(27);"l";chr$(5);:rem linker rand
830 print#1,chr$(27);"[208]";:rem pica ein
840 print#1,chr$(27);"x1";:rem nlq ein
850 print#1,chr$(27);"k";chr$(1);:rem nlq sanserif
860 print#1,chr$(15);:rem schmaldruck ein
870 print#1,chr$(27);"[196]";chr$(26);chr$(0);:rem tabulatoren setzen
880 print#1,"+";spc(93);"+"
890 print#1,chr$(18);:rem schmaldruck aus
900 print#1," [210]ubrik-[206]r.: [211] p e r r [205] [189] l l"
910 print#1," [195] o u p o n"
920 print#1,
930 print#1," ";chr$(27);"[215]";chr$(1);a$(1);chr$(27);"[215]";chr$(0)
940 print#1,chr$(15);:rem schmaldruck ein
950 for n=1 to 4:print#1,:next
960 print#1,chr$(9);chr$(27);"-";chr$(1);"[193]nzeigentext:";chr$(27);"-";chr$(0)
970 print#1,spc(5);a$(2);chr$(9);a$(3)
980 print#1,chr$(9);a$(4)
990 print#1,spc(5);"[196]ie [193]nzeige";chr$(9);a$(5)
1000 print#1,spc(5);"soll kostenlos";chr$(9);a$(6)
1010 if n$="2" then print#1,spc(5);"erscheinen";chr$(9);a$(9):goto 1030
1020 print#1,spc(5);"erscheinen";chr$(9);a$(7)
1030 for n=1 to 3:print#1,:next
1040 print#1,;chr$(9);"[206]ame: [211]iggi [211]orglos [211]tra[190]e: [198]loppystr. 64"
1050 print#1,;chr$(9);"[208][204][218], [207]rt: 6502 [200]ackershausen [213]nterschrift:"
1060 if n$="2" then print#1,chr$(9);"[193]usweis-[206]r.: ";a$(10):goto 1080
1070 print#1,
1080 print#1,
1090 print#1,
1100 print#1,"+";spc(93);"+"
1110 print#1,
1120 print#1,chr$(27);"x0";:rem draft ein
1130 print#1,spc(5);a$(1);" ";a$(2)
1140 for n=3 to 6
1150 print#1,spc(5);a$(n)
1160 next n
1170 print#1,
1180 close 1
1190 goto 240
1200 :
1210 print chr$(147);
1220 print" [196]aten korrigieren [146]"
1230 print
1240 for n=1 to 7:print tab(2);chr$(34);a$(n):next
1250 print"":for n=1 to 7:input a$(n):next
1260 goto 240
1270 :
1280 poke204,0:wait198,255:getz$
1290 poke207,0:poke204,1
1300 t=asc(z$):ift=13thenprint" ":goto1390
1310 ift=20andlen(a$(n))<1then1280
1320 ift=20thena$(n)=left$(a$(n),len(a$(n))-1):printchr$(20);:goto1280
1330 iflen(a$(n))>62then1280
1340 ift=17ort=29ort=145ort=157ort=19ort=147ort=148then1280
1350 ift=133ort=134ort=135ort=136ort=137ort=138ort=139ort=140then1280
1360 ift=3ort=131then1280
1370 printz$;:a$(n)=a$(n)+z$
1380 goto1280
1390 return
1400 :
1410 print"[147][196]aten auf [196]iskette speichern[146]"
1420 print"[204]ege eine [196]atendiskette ein"
1430 print"und gib den [196]ateinamen ein"
1440 a$(12)="":n=12:gosub 1280
1450 if a$(12)="" then 240
1460 open 1,8,1,"@:"+a$(12)+",s,w"
1470 for n=1 to 6:if a$(n)="" then a$(n)=" "
1480 print#1,chr$(34);a$(n);chr$(34):next
1490 close 1
1500 goto 240
1510 :
1520 print"[147][196]aten von [196]iskette laden[146]"
1530 print"[204]ege eine [196]atendiskette ein"
1540 print"und gib den [196]ateinamen ein"
1550 a$(11)="":n=11:gosub 1280
1560 if a$(11)="" then 240
1570 open 1,8,0,a$(11)+",s,r"
1580 for n=1 to 6:input#1,a$(n):next
1590 close 1
1600 :
1610 print chr$(147);
1620 print" [196]aten anzeigen [146]"
1630 print"[198]olgender [195]oupon-[212]ext befindet"
1640 print"sich im [211]peicher:"
1650 print"";tab(3);a$(1)
1660 print tab(3);a$(2)
1670 print:print
1680 for n=3 to 7:print tab(3);a$(n):next
1690 print" [194]itte [212]aste druecken[144]"
1700 get n$:if n$="" then 1700
1710 goto 240
1720 :
1730 print chr$(147);
1740 sys 50002
1750 get n$:if n$="" then 1750
1760 goto 240
1770 :
1780 rem variablen-liste
1790 rem a$ (1)= rubrik-nr.
1800 rem a$ (2)= biete / suche
1810 rem a$ (3)= 1. textzeile
1820 rem a$ (4)= 2. textzeile
1830 rem a$ (5)= 3. textzeile
1840 rem a$ (6)= 4. textzeile
1850 rem a$ (7)= tel.nr.
1860 rem a$ (8)= b/s (nur fuer monitor)
1870 rem a$ (9)= adresse
1880 rem a$(10)= ausweis-nummer
1890 rem a$(11)= filename laden
1900 rem a$(12)= filename speichern